package main

import "fmt"

func main() {
	num := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35}
	result := make([]int, 15)

	var count1 *int
	count2 := 0
	count1 = &count2
	for count2 < 15 {
		num = down1(num, result, count1)
	}
	fmt.Println(result)
}

func down1(num []int, result []int, count1 *int) []int {
	count := len(num) / 9
	for i := 0; i < count; i++ {
		result[*count1] = num[8]
		num = append(num[9:], num[:8]...)
		//fmt.Println(num)
		*count1 += 1
	}
	return num
}
